// api.js

import request from '../httpRequest/request';

// 获取banner列表
export const BannerList = async ({ pageNum, pageSize }) => {
  return request.get('/banner/list', { params: { pageNum, pageSize } });
};

// 删除banner
export const BannerDelete =async (id) => {
  return request.delete(`/banner/delete/${id}`);
};

// 更新banner
export const BannerUpdate = (id,data) => {
  return request.put(`/banner/update/${id}`,data);
};

// 添加banner
export const BannerAdd = (group_info) => {
  return request.post('/banner/add', group_info);
};



